/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.wii.jpa;

import oracle.toplink.essentials.jndi.JNDIConnector;
import oracle.toplink.essentials.sessions.Session;
import oracle.toplink.essentials.tools.sessionconfiguration.SessionCustomizer;
/**
 *
 * @author hendro
 */
public class ImplementCustomizer implements SessionCustomizer{
    public void customize(Session session) throws Exception {
        JNDIConnector connector = (JNDIConnector) session.getLogin().getConnector();
        connector.setLookupType(JNDIConnector.STRING_LOOKUP);
    }
}
